﻿using System.Xml.Serialization;

namespace ABC.XPath.Test.Models
{
	public class TypeCode
	{
		private short _id;
		private string _description;

		public TypeCode() { }

		public TypeCode(short id, string description)
		{
			Value = id;
			Description = description;
		}

		[XmlAttribute("tc")]
		public short Value
		{
			get { return _id; }
			set { _id = value; }
		}

		[XmlText(DataType = "token")]
		public string Description
		{
			get { return _description; }
			set { _description = value; }
		}
	}
}
